package com.gcms;

/**
 * @ClassName Coumputer
 * @Description TODO
 * @Author 2214361854
 * @Date 2022/3/5 22:18
 * @Version 1.0
 */
public abstract class Coumputer {
    private String name;
    private double price;

    public abstract void start();

    public Coumputer() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Coumputer{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
